<include file="Common:header" />
<script src="<{:__PUBLIC__}>/js/city.js" type="text/javascript"></script>
<table id="columns">
<tr>
<td id="main" style="-moz-border-radius-bottomleft:8px;">
<div class="contenter">
    <div class="indexh">
        <div class="tabon"><a href="<{:SITE_URL}>/Setting">基本设置</a></div>
        <div class="taboff"><a href="<{:SITE_URL}>/Setting/face">修改头像</a></div>
        <div class="taboff"><a href="<{:SITE_URL}>/Setting/account">修改密码</a></div>
        <div class="taboff"><a href="<{:SITE_URL}>/Setting/mailauth">邮箱验证</a></div>
        <div class="taboff"><a href="<{:SITE_URL}>/Setting/theme">模 板</a></div>
    </div>
    <form method="post" action="<{:SITE_URL}>/Setting/doset">
    <table border="0" width="100%">
    <tr height="50px">
        <td align="right" width="120px" style="font-size:14px">帐 号：&nbsp;&nbsp;&nbsp;</td>
        <td><{$my[user_name]}></td>
    </tr>
    <tr height="50px">
        <td align="right" style="font-size:14px"><font color="red">*</font> 姓 名：&nbsp;&nbsp;&nbsp;</td>
        <td>
        <input type="text" id="nickname" name="nickname" value="<{$my[nickname]}>" class="input_text" style="width:130px" maxlength="12"><span class="setgray">1-12个中文、字母、数字</span>
        </td>
    </tr>
    <tr height="50px">
        <td align="right" style="font-size:14px"><font color="red" style="font-size:14px">*</font> 性 别：&nbsp;&nbsp;&nbsp;</td>
        <td>
        <input type="radio" class="radio" name="gender" id="gender1" value="男"><label for="gender1">&nbsp;男</label>&nbsp;&nbsp;&nbsp;
        <input type="radio" class="radio" name="gender" id="gender0" value="女"><label for="gender0">&nbsp;女</label>
        </td>
    </tr>
    <tr height="50px">
        <td align="right" style="font-size:14px"><font color="red">*</font> 居住地：&nbsp;&nbsp;&nbsp;</td>
        <td><select name="livesf" id="livesf" onchange="changelivecity()">
            <option value="">选择省份</option><option value="江苏省">江苏省</option><option value="北京">北京</option><option value="天津">天津</option><option value="上海">上海</option><option value="重庆">重庆</option><option value="广东省">广东省</option><option value="浙江省">浙江省</option><option value="福建省">福建省</option><option value="湖南省">湖南省</option><option value="湖北省">湖北省</option><option value="山东省">山东省</option><option value="辽宁省">辽宁省</option><option value="吉林省">吉林省</option><option value="云南省">云南省</option><option value="四川省">四川省</option><option value="安徽省">安徽省</option><option value="江西省">江西省</option><option value="黑龙江省">黑龙江省</option><option value="河北省">河北省</option><option value="陕西省">陕西省</option><option value="海南省">海南省</option><option value="河南省">河南省</option><option value="山西省">山西省</option><option value="内蒙古">内蒙古</option><option value="广西">广西</option><option value="贵州省">贵州省</option><option value="宁夏">宁夏</option><option value="青海省">青海省</option><option value="新疆">新疆</option><option value="西藏">西藏</option><option value="甘肃省">甘肃省</option><option value="台湾省">台湾省</option><option value="香港">香港</option><option value="澳门">澳门</option><option value="国外">国外</option>
           </select>
           <select name="livecity" id="livecity"><option value="">选择城市</option></select>
         </td>
    </tr>
    <tr height="100px">
        <td align="right" valign="top" style="font-size:14px">个人介绍：&nbsp;&nbsp;&nbsp;</td>
        <td valign="top">
        <textarea name="info" id="infomsg" class="input_text" style="width:350px;height:100px"><{$my[user_info]}></textarea>
        <div class="followtime">还能输入 <span id="nums">200</span> 个字符</div>
        </td>
    </tr>
    <tr height="60px">
        <td>&nbsp;</td>
        <td><input type="submit" class="button1" value="保存信息" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<{:SITE_URL}>/<{$my[user_name]}>">取消</a></td>
    </tr>
    </table>
    </form>
</div>
</td>
<td id="sidebar"><include file="Space:homeside"/></td>
</tr>
</table>
<script type="text/javascript">
    <php>$ct=explode(' ',$my[live_city]);</php>
    $('#livesf').val("<{$ct[0]}>");
    changelivecity();
    $('#livecity').val("<{$ct[1]}>");
    <php>if($my[user_gender]=='男'){</php>
        $('#gender1').attr("checked",true);
    <php>}else{</php>
        $('#gender0').attr("checked",true);
    <php>}</php>
    $("#infomsg").keyup(function(){
        var len=$.trim($('#infomsg').val()).length;
        len=200-len;
        if (len<0) {
            $('#infomsg').val($.trim($('#infomsg').val()).slice(0,200));
            len=0;
        }
        $('#nums').html(len);
    });
    $('#nums').html(200-$.trim($('#infomsg').val()).length);
</script>
<include file="Common:foot" />